<?php

namespace bee;

/**
 *
 * @author dzelenika
 *
 */
class file extends widget
{
  /**
   *
   * @var eventDetails
   */
  public $onChangeFn;
  public $onSelectFn;

  function __construct($name, &$bindValue = "")
  { parent::__construct($name);
    //echo "--" . $bindValue . "--";
    $this->bindValue($bindValue);
    $this->widgetType = WIDGET_FILE;
  }

/**
 *
 * @param array $evt
 */
  public function onDraw($evt)
  { //echo "*+*+*+*";
    $this->fillDSDoc();

  }

  /**
   *
   * @param sting $fillVar
   */
  public function fillDSDoc($fillVar = "")
  { if($fillVar)
    { $this->DSDoc->setVariable($fillVar, $this->value);
    }
    $this->DSDoc->setObject("widgets/" . $this->name, $this);

  }

}

